package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "z_drug_template")
public class Template implements Serializable {

	private static final long serialVersionUID = 5154842389586640460L;
	@Id
	@Column(name = "tid_bigint", columnDefinition = "bigint(20)")
	private Long tId;
	@Column(name = "dcid_bigint", columnDefinition = "bigint(20)")
	private Long dCid;
	@Column(name = "t_name_nvarchar", columnDefinition = "varchar(255)")
	private String tName;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "does_int", columnDefinition = "int(11)")
	private Integer does;
	@Column(name = "day_count_int", columnDefinition = "int(11)")
	private Integer dayCount;
	@Column(name = "med_way_nvarchar", columnDefinition = "varchar(255)")
	private String medWay;
	@Column(name = "avoid_nvarchar", columnDefinition = "varchar(255)")
	private String avoid;
	@Column(name = "use_time_nvarchar", columnDefinition = "varchar(255)")
	private String useTime;
	@Column(name = "cook_nvarchar", columnDefinition = "varchar(255)")
	private String cook;
	@Column(name = "suggest_nvarchar", columnDefinition = "varchar(255)")
	private String suggest;
	@Column(name = "base_does_int", columnDefinition = "int(11)")
	private Integer baseDoes;
	@Column(name = "q_type_int", columnDefinition = "int(11) comment '0=经典方,1=医生独有,2=医生分享'")
	private Integer qType;
}
